package com.econ.powercloud.ems.rpc;

import com.econ.powercloud.ems.rpc.callback.IFeignPowerNodeGatewayFallbackFactory;
import com.econ.powercloud.powernode.gateway.common.domain.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author : zjf
 * @Description : 网关相关的feign接口
 * @Date : 2022/7/29 12:31
 * @Modified by : zjf
 */
@FeignClient(name = "powernode-gateway-server"/*,url = "192.168.86.222:8090"*/, fallbackFactory = IFeignPowerNodeGatewayFallbackFactory.class)
public interface IFeignPowerNodeGatewayClient {

    @GetMapping(value = "/svc/v2/user/getUser")
    UserDTO getUserBySaToken(@RequestParam("satoken") String satoken);
}
